package com.duke.kafkaconsumer.swservervice;


import org.apache.skywalking.apm.network.language.agent.v3.SegmentObject;

/**
 * @author gjy
 * @create 2024-02-23 1:51 PM
 */
public class SWMessageConsumer {

    public static void test(){
//        EndpointReportObject endpointReportObject = EndpointskywaReportObject.newBuilder()
//                .setTraceId("your_trace_id")
//                .setTraceSegmentId("your_trace_segment_id")
//                // 设置其他字段的值
//                .build();
//        byte[] byteArray = endpointReportObject.toByteArray();
//        System.out.println("Original Message: " + object);
        SegmentObject yourTraceId = SegmentObject.newBuilder().setTraceId("your_trace_id").build();

        System.out.println("Original Message: " + yourTraceId);
    }

    public static void main(String[] args) {
        test();
    }
}
